/** 页面最大化 **/
export function requestFullScreen() {
    const docElm = document.documentElement
    if(docElm.requestFullscreen) {
        docElm.requestFullscreen()
    } else if(docElm.msRequestFullscreen) {
        docElm.msRequestFullscreen()
    } else if(docElm.webkitRequestFullScreen) {
        docElm.webkitRequestFullScreen()
    } else if(docElm.mozRequestFullScreen) {
        docElm.mozRequestFullScreen()
    }
}

/** 退出最大化 **/

export function exitFullscreen() {
    const de = window.parent.document
    if (de.exitFullscreen) {
        de.exitFullscreen();
    } else if (de.mozCancelFullScreen) {
        de.mozCancelFullScreen();
    } else if (de.webkitCancelFullScreen) {
        de.webkitCancelFullScreen();
    } else if (de.msExitFullscreen) {
        de.msExitFullscreen()
    }
}